
var games_id=["gcdiv1","gcdiv2","gcdiv3","gcdiv4","gcdiv5","gcdiv6","gcdiv7","gcdiv8"];
function gamesMove(data,that){
	var games_item_subnav=document.getElementsByClassName("games_item_subnav")[0].getElementsByTagName("div");
	for(var i=0;i<8;i++){
		games_item_subnav[i].style="color:#aaa;border-bottom:rgba(0,0,0,0) 3px solid;";
	}
	that.style="border-bottom:#f3c258 3px solid;color:black;";
	for(var i=0;i<8;i++){
		if(games_item_subnav[i]==data){
			document.getElementById(games_id[i]).className="content_block";
		}else{
			document.getElementById(games_id[i]).className="content_none";
		}
	}
	document.getElementById(data).className="content_block";
}

var contents_id=["item_t1","item_t2","item_t3"];
function contentsMove(data,that){
	var contents_item_subnav=document.getElementsByClassName("contents_item_subnav")[0].getElementsByTagName("div");
	for(var i=0;i<3;i++){
		contents_item_subnav[i].style="color:#aaa;border-bottom:rgba(0,0,0,0) 3px solid;";
	}
	that.style="border-bottom:#f3c258 3px solid;color:black;";
	for(var i=0;i<3;i++){
		if(contents_item_subnav[i]==data){
			document.getElementById(contents_id[i]).className="content_block";
		}else{
			document.getElementById(contents_id[i]).className="content_none";
		}
	}
	document.getElementById(data).className="content_block";
}

var herosskin_id=["heros_skin_contents1","heros_skin_contents2","heros_skin_contents3"];
function herosskinMove(data,that){
	var heros_skin_item_subnav=document.getElementsByClassName("heros_skin_item_subnav")[0].getElementsByTagName("div");
	for(var i=0;i<3;i++){
		heros_skin_item_subnav[i].style="color:#aaa;border-bottom:rgba(0,0,0,0) 3px solid;";
	}
	that.style="border-bottom:#f3c258 3px solid;color:black;";
	for(var i=0;i<3;i++){
		if(heros_skin_item_subnav[i]==data){
			document.getElementById(herosskin_id[i]).className="content_block";
		}else{
			document.getElementById(herosskin_id[i]).className="content_none";
		}
	}
	document.getElementById(data).className="content_block";
}

var titles1_id=["item_contents_1","item_contents_2","item_contents_3","item_contents_4","item_contents_5","item_contents_6",
"item_contents_7","item_contents_8"];
function title1Move(data,that){
	var item_contents1=document.getElementsByClassName("item_title1")[0].getElementsByTagName("div");
	for(var i=0;i<8;i++){
		item_contents1[i].style="color:black;background-color:#f5f5f5;";
	}
	that.style="color:white;background-color:#f3c258;";
	for(var i=0;i<8;i++){
		if(item_contents1[i]==data){
			document.getElementById(titles1_id[i]).className="content_block";
		}else{
			document.getElementById(titles1_id[i]).className="content_none";
		}
	}
	document.getElementById(data).className="content_block";
}

